import request from '@/utils/request'

// 获取mqtt服务器配置分页列表
export function getmqttServerConfPageApi(params: any) {
    return request({
        url: '/ems/mqttServerConf/selectPage',
        method: 'get',
        params
    })
}
// 获取mqtt服务器配置列表
export function getmqttServerConfListApi(params: any) {
    return request({
        url: '/ems/mqttServerConf/list',
        method: 'get',
        params
    })
}
// 新增mqtt服务器配置列表
export function addmqttServerConfApi(data: any) {
    return request({
        url: '/ems/mqttServerConf/add',
        method: 'post',
        data
    })
}
// 更新mqtt服务器配置列表
export function updatemqttServerConfApi(data: any) {
    return request({
        url: '/ems/mqttServerConf/update',
        method: 'put',
        data
    })
}
// 删除mqtt服务器配置列表
export function delmqttServerConfApi(id: any) {
    return request({
        url: `/ems/mqttServerConf/del/${id}`,
        method: 'delete',
    })
}
